<?php
/**
 * @TABLE "category"
 * @JOIN_FROM "user_id < user.id"
 * @JOIN_TO "id > category_extra.category_id"
 * @JOIN_TO "id > content_category.category_id"
 * @JOIN_TO "id > content_comment.category_id"
 * @JOIN_TO "id > content_counter.category_id"
 * @JOIN_TO "id > content_rating.category_id"
 * @JOIN_TO "id > counter_view.category_id"
 */
class BaseCategory extends Abstract_PluginEntityManager_Entity
{
	/**
	 * @PRIMARY
	 * @COLUMN "id"
	 * @TYPE "int"
	 * @LENGTH "10"
	 * @NOT_NULL
	 * @AUTO_INCREMENT
	 */
	public $id;

	/**
	 * @COLUMN "user_id"
	 * @TYPE "int"
	 * @LENGTH "10"
	 * @NOT_NULL
	 */
	public $user_id;

	/**
	 * @COLUMN "title"
	 * @TYPE "varchar"
	 * @LENGTH "256"
	 * @NOT_NULL
	 */
	public $title;

	/**
	 * @COLUMN "title_url"
	 * @TYPE "varchar"
	 * @LENGTH "256"
	 */
	public $title_url;

	/**
	 * @COLUMN "description"
	 * @TYPE "varchar"
	 * @LENGTH "512"
	 */
	public $description;

	/**
	 * @COLUMN "type"
	 * @TYPE "enum"
	 * @LENGTH "'album','webserie','contest','ad_structure','ad_pet','ad_store'"
	 * @DEFAULT "album"
	 */
	public $type;

	/**
	 * @COLUMN "tag_description"
	 * @TYPE "varchar"
	 * @LENGTH "255"
	 */
	public $tag_description;

	/**
	 * @COLUMN "tag_keywords"
	 * @TYPE "varchar"
	 * @LENGTH "255"
	 */
	public $tag_keywords;

	/**
	 * @COLUMN "status"
	 * @TYPE "enum"
	 * @LENGTH "'visible','deleted','hidden'"
	 * @NOT_NULL
	 * @DEFAULT "visible"
	 */
	public $status;

	/**
	 * @COLUMN "privacy"
	 * @TYPE "enum"
	 * @LENGTH "'all','users','friends'"
	 * @NOT_NULL
	 * @DEFAULT "all"
	 */
	public $privacy;

	/**
	 * @COLUMN "date_online"
	 * @TYPE "timestamp"
	 */
	public $date_online;

	/**
	 * @COLUMN "date_added"
	 * @TYPE "timestamp"
	 * @NOT_NULL
	 * @DEFAULT "CURRENT_TIMESTAMP"
	 */
	public $date_added;

	/**
	 * @COLUMN "date_offline"
	 * @TYPE "timestamp"
	 */
	public $date_offline;
}
?>